define(['../../../../../js/lib/other/sweet-alert'],function() {
    return ['$scope','$location', '$interval','$timeout', function($scope,$location,$interval,$timeout) {
		$scope.$emit("top-show",'true');//顶部显示
    	$scope.$emit('menuTypeLight','mine'); 	//控制底部menu高亮
    	$scope.$emit('bub-menu','true'); 	//隐藏底部menu
    	$scope.$emit('flag-tag','31');//显示底部文字
    	
    	
    	//去案源库
    	$scope.goCaseSrcLib = function(){
    		$scope.$emit('goNext','/caseSrcLib/1');
    	}
    	
    	//去首页
    	$scope.goHome = function(){
    		$scope.$emit('goNext','/');
    	}
    	
    	//去查看明细
    	$scope.checkDetail = function(){
//    		$scope.$emit('goNext','/repayDetail');
//    		$location.path('/sucRepaying').replace();//想改变当前 URL 而不创建新的历史记录的话
    		history.back();
    	}
        $scope.$apply();
    }];
});